# To change this template, choose Tools | Templates
# and open the template in the editor.

__author__="Eagle"
__date__ ="$12.4.2011 23:26:19$"

class DBManager():
    instance = None
    db = None

    def set(self, db):
        self.db = db

    def get(self):
        return self.db

    @classmethod
    def getInstance(self):
        if self.instance is None:
            self.instance = DBManager()

        return self.instance